import request from '@/utils/request'

/**
* 工艺主表分页查询
* @param {查询条件} data
*/
export function listCksTechnique(query) {
  return request({
    url: 'business/CksTechnique/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增工艺主表
* @param data
*/
export function addCksTechnique(data) {
  return request({
    url: 'business/CksTechnique',
    method: 'post',
    data: data,
  })
}
/**
* 修改工艺主表
* @param data
*/
export function updateCksTechnique(data) {
  return request({
    url: 'business/CksTechnique',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取工艺主表详情
* @param {Id}
*/
export function getCksTechnique(id) {
  return request({
    url: 'business/CksTechnique/' + id,
    method: 'get'
  })
}

/**
* 删除工艺主表
* @param {主键} pid
*/
export function delCksTechnique(pid) {
  return request({
    url: 'business/CksTechnique/delete/' + pid,
    method: 'delete'
  })
}
